#include "DXUT.h"

#ifndef UPDATER_H
#define UPDATER_H

#include "IThread.h"
class World;
class Updatequeue;
#include "World.h"

class Updater : public IThread {
private:
	World*				m_pWorld;
protected:
	static DWORD WINAPI run( LPVOID pParam );
public:
	Updater(World* pWorld);
	~Updater();

	void setStatus( int status ) {};
	void setValue( void * userData ) {};
};

class TickUpdater : public IThread {
private:
	World*				m_pWorld;
	Updatequeue*		m_pQueue;
protected:
	static DWORD WINAPI run( LPVOID pParam );
public:
	TickUpdater(World* pWorld);
	~TickUpdater();

	void setStatus( int status ) {};
	void setValue( void * userData );
};


#endif